<div id = "main">
	<div class = "container">
		<?php if (isset($saveqqResult)) { ?>
		<div class = "form_title"><span class = "tip-red"><?php echo $saveqqResult ? "操作成功" : "操作失败"; ?></span></div>
		<?php } ?>
		<form action = "setqqall.php" method = "post">
			<input type = "hidden" id = "type" name = "type" value = "<?php echo $type;?>" />
			<input type = "hidden" id = "id_array" name = "id_array" value = "<?php echo $id_array;?>" />
			<input type = "hidden" name = "sub" value = "sub" />
			<?php if ($type == 'update') { ?>
			<ul class = "form_ul">
				<li title = "机器人名字"><label class = "form_label" for = "name"><i class = "fa fa-paper-plane-o fa-fw"></i></label><input class = "form_input" type = "text" id = "name" name = "name" placeholder = "机器人名字" value = "<?php echo isset($name) ? htmlspecialchars($name) : "";?>" /></li>
				<li title = "创建者QQ"><label class = "form_label" for = "create_uin"><i class = "fa fa-flag-o fa-fw"></i></label><input class = "form_input" type = "text" id = "create_uin" name = "create_uin" placeholder = "创建者QQ" value = "<?php echo isset($create_uin) ? htmlspecialchars($create_uin) : "";?>" /></li>
				<li title = "是否开启群聊"><label class = "form_label" for = "is_group_speech_true"><i class = "fa fa-toggle-on fa-fw"></i></label><span class = "form_i_title">开启群聊</span><input class = "form_radio" type = "radio" id = "is_group_speech_true" name = "is_group_speech" value = "true" <?php echo (!isset($is_group_speech) || (isset($is_group_speech) && $is_group_speech == 1)) ? "checked=\"checked\"" : "";?> />是<input class = "form_radio" type = "radio" id = "is_group_speech_false" name = "is_group_speech" value = "false" <?php echo (isset($is_group_speech) && $is_group_speech == 0) ? "checked=\"checked\"" : "";?> />否<label class = "form_label form_label_right" for = "is_group_speech_false"><i class = "fa fa-toggle-off fa-fw"></i></label></li>
				<li title = "是否开启私聊"><label class = "form_label" for = "is_personal_speech_true"><i class = "fa fa-toggle-on fa-fw"></i></label><span class = "form_i_title">开启私聊</span><input class = "form_radio" type = "radio" id = "is_personal_speech_true" name = "is_personal_speech" value = "true" <?php echo (!isset($is_personal_speech) || (isset($is_personal_speech) && $is_personal_speech == 1)) ? "checked=\"checked\"" : "";?> />是<input class = "form_radio" type = "radio" id = "is_personal_speech_false" name = "is_personal_speech" value = "false" <?php echo (isset($is_personal_speech) && $is_personal_speech == 0) ? "checked=\"checked\"" : "";?> />否<label class = "form_label form_label_right" for = "is_personal_speech_false"><i class = "fa fa-toggle-off fa-fw"></i></label></li>
				<li title = "是否回复消息"><label class = "form_label" for = "is_reply_true"><i class = "fa fa-toggle-on fa-fw"></i></label><span class = "form_i_title">是否回复</span><input class = "form_radio" type = "radio" id = "is_reply_true" name = "is_reply" value = "true" <?php echo (!isset($is_reply) || (isset($is_reply) && $is_reply == 1)) ? "checked=\"checked\"" : "";?> />是<input class = "form_radio" type = "radio" id = "is_reply_false" name = "is_reply" value = "false" <?php echo (isset($is_reply) && $is_reply == 0) ? "checked=\"checked\"" : "";?> />否<label class = "form_label form_label_right" for = "is_reply_false"><i class = "fa fa-toggle-off fa-fw"></i></label></li>
				<li title = "是否开启挂机模式"><label class = "form_label" for = "is_hook_true"><i class = "fa fa-toggle-on fa-fw"></i></label><span class = "form_i_title">挂机模式</span><input class = "form_radio" type = "radio" id = "is_hook_true" name = "is_hook" value = "true" <?php echo (isset($is_hook) && $is_hook == 1) ? "checked=\"checked\"" : "";?> />是<input class = "form_radio" type = "radio" id = "is_hook_false" name = "is_hook" value = "false" checked="checked" />否<label class = "form_label form_label_right" for = "is_hook_false"><i class = "fa fa-toggle-off fa-fw"></i></label></li>
				<li title = "是否开启掉线重连"><label class = "form_label" for = "is_reconnection_true"><i class = "fa fa-toggle-on fa-fw"></i></label><span class = "form_i_title">掉线重连</span><input class = "form_radio" type = "radio" id = "is_reconnection_true" name = "is_reconnection" value = "true" <?php echo (!isset($is_reconnection) || (isset($is_reconnection) && $is_reconnection == 1)) ? "checked=\"checked\"" : "";?> />是<input class = "form_radio" type = "radio" id = "is_reconnection_false" name = "is_reconnection" value = "false" <?php echo (isset($is_reconnection) && $is_reconnection == 0) ? "checked=\"checked\"" : "";?> />否<label class = "form_label form_label_right" for = "is_reconnection_false"><i class = "fa fa-toggle-off fa-fw"></i></label></li>
				<li title = "是否开启机器人运行"><label class = "form_label" for = "is_run_true"><i class = "fa fa-toggle-on fa-fw"></i></label><span class = "form_i_title">是否运行</span><input class = "form_radio" type = "radio" id = "is_run_true" name = "is_run" value = "true" <?php echo (!isset($is_run) || (isset($is_run) && $is_run == 1)) ? "checked=\"checked\"" : "";?> />是<input class = "form_radio" type = "radio" id = "is_run_false" name = "is_run" value = "false" <?php echo (isset($is_run) && $is_run == 0) ? "checked=\"checked\"" : "";?> />否<label class = "form_label form_label_right" for = "is_run_false"><i class = "fa fa-toggle-off fa-fw"></i></label></li>
				<li><input class = "form_button" type = "submit" value = "批量修改" /></li>
			</ul>
			<?php } elseif ($type == 'manager') { ?>
			<ul class = "form_ul">
				<li title = "机器人管理员"><label class = "form_label" for = "name"><i class = "fa fa-users fa-fw"></i></label><input class = "form_input" type = "text" id = "manager_uin" name = "manager_uin" placeholder = "机器人管理员" value = "<?php echo isset($manager_uin) ? htmlspecialchars($manager_uin) : "";?>" /></li>
				<li title = "QQ群黑名单"><label class = "form_label" for = "name"><i class = "fa fa-th-list fa-fw"></i></label><input class = "form_input" type = "text" id = "group_black_list" name = "group_black_list" placeholder = "QQ群黑名单" value = "<?php echo isset($group_black_list) ? htmlspecialchars($group_black_list) : "";?>" /></li>
				<li title = "QQ群白名单"><label class = "form_label" for = "name"><i class = "fa fa-th-list fa-fw"></i></label><input class = "form_input" type = "text" id = "group_white_list" name = "group_white_list" placeholder = "QQ群白名单" value = "<?php echo isset($group_white_list) ? htmlspecialchars($group_white_list) : "";?>" /></li>
				<li title = "QQ黑名单"><label class = "form_label" for = "name"><i class = "fa fa-th-list fa-fw"></i></label><input class = "form_input" type = "text" id = "qq_black_list" name = "qq_black_list" placeholder = "QQ黑名单" value = "<?php echo isset($qq_black_list) ? htmlspecialchars($qq_black_list) : "";?>" /></li>
				<li title = "QQ白名单"><label class = "form_label" for = "name"><i class = "fa fa-th-list fa-fw"></i></label><input class = "form_input" type = "text" id = "qq_white_list" name = "qq_white_list" placeholder = "QQ白名单" value = "<?php echo isset($qq_white_list) ? htmlspecialchars($qq_white_list) : "";?>" /></li>
				<li title = "加群提示语"><label class = "form_label" for = "name"><i class = "fa fa-tags fa-fw"></i></label><input class = "form_input" type = "text" id = "add_group_clues" name = "add_group_clues" placeholder = "加群提示语" value = "<?php echo isset($add_group_clues) ? htmlspecialchars($add_group_clues) : "";?>" /></li>
				<li title = "同意加群提示语"><label class = "form_label" for = "name"><i class = "fa fa-tags fa-fw"></i></label><input class = "form_input" type = "text" id = "agree_add_group_clues" name = "agree_add_group_clues" placeholder = "同意加群提示语" value = "<?php echo isset($agree_add_group_clues) ? htmlspecialchars($agree_add_group_clues) : "";?>" /></li>
				<li title = "拒绝加群提示语"><label class = "form_label" for = "name"><i class = "fa fa-tags fa-fw"></i></label><input class = "form_input" type = "text" id = "refuse_add_group_clues" name = "refuse_add_group_clues" placeholder = "拒绝加群提示语" value = "<?php echo isset($refuse_add_group_clues) ? htmlspecialchars($refuse_add_group_clues) : "";?>" /></li>
				<li title = "是否让机器人自动同意别人的加群请求"><label class = "form_label" for = "is_agree_add_group_true"><i class = "fa fa-toggle-on fa-fw"></i></label><span class = "form_i_title">同意加群</span><input class = "form_radio" type = "radio" id = "is_agree_add_group_true" name = "is_agree_add_group" value = "true" <?php echo (isset($is_agree_add_group) && $is_agree_add_group == 1) ? "checked=\"checked\"" : "";?> />是<input class = "form_radio" type = "radio" id = "is_agree_add_group_false" name = "is_agree_add_group" value = "false" <?php echo (!isset($is_agree_add_group) || (isset($is_agree_add_group) && $is_agree_add_group == 0)) ? "checked=\"checked\"" : "";?> />否<label class = "form_label form_label_right" for = "is_agree_add_group_false"><i class = "fa fa-toggle-off fa-fw"></i></label></li>
				<li title = "是否让机器人自动拒绝别人的加群请求"><label class = "form_label" for = "is_refuse_add_group_true"><i class = "fa fa-toggle-on fa-fw"></i></label><span class = "form_i_title">拒绝加群</span><input class = "form_radio" type = "radio" id = "is_refuse_add_group_true" name = "is_refuse_add_group" value = "true" <?php echo (isset($is_refuse_add_group) && $is_refuse_add_group == 1) ? "checked=\"checked\"" : "";?> />是<input class = "form_radio" type = "radio" id = "is_refuse_add_group_false" name = "is_refuse_add_group" value = "false" <?php echo (!isset($is_refuse_add_group) || (isset($is_refuse_add_group) && $is_refuse_add_group == 0)) ? "checked=\"checked\"" : "";?> />否<label class = "form_label form_label_right" for = "is_refuse_add_group_false"><i class = "fa fa-toggle-off fa-fw"></i></label></li>
				<li title = "是否开启QQ群黑名单"><label class = "form_label" for = "is_group_black_list_true"><i class = "fa fa-toggle-on fa-fw"></i></label><span class = "form_i_title">群黑名单</span><input class = "form_radio" type = "radio" id = "is_group_black_list_true" name = "is_group_black_list" value = "true" <?php echo (isset($is_group_black_list) && $is_group_black_list == 1) ? "checked=\"checked\"" : "";?> />是<input class = "form_radio" type = "radio" id = "is_group_black_list_false" name = "is_group_black_list" value = "false" <?php echo (!isset($is_group_black_list) || (isset($is_group_black_list) && $is_group_black_list == 0)) ? "checked=\"checked\"" : "";?> />否<label class = "form_label form_label_right" for = "is_group_black_list_false"><i class = "fa fa-toggle-off fa-fw"></i></label></li>
				<li title = "是否开启QQ群白名单"><label class = "form_label" for = "is_group_white_list_true"><i class = "fa fa-toggle-on fa-fw"></i></label><span class = "form_i_title">群白名单</span><input class = "form_radio" type = "radio" id = "is_group_white_list_true" name = "is_group_white_list" value = "true" <?php echo (isset($is_group_white_list) && $is_group_white_list == 1) ? "checked=\"checked\"" : "";?> />是<input class = "form_radio" type = "radio" id = "is_group_white_list_false" name = "is_group_white_list" value = "false" <?php echo (!isset($is_group_white_list) || (isset($is_group_white_list) && $is_group_white_list == 0)) ? "checked=\"checked\"" : "";?> />否<label class = "form_label form_label_right" for = "is_group_white_list_false"><i class = "fa fa-toggle-off fa-fw"></i></label></li>
				<li title = "是否开启QQ黑名单"><label class = "form_label" for = "is_qq_black_list_true"><i class = "fa fa-toggle-on fa-fw"></i></label><span class = "form_i_title">Q黑名单</span><input class = "form_radio" type = "radio" id = "is_qq_black_list_true" name = "is_qq_black_list" value = "true" <?php echo (isset($is_qq_black_list) && $is_qq_black_list == 1) ? "checked=\"checked\"" : "";?> />是<input class = "form_radio" type = "radio" id = "is_qq_black_list_false" name = "is_qq_black_list" value = "false" <?php echo (!isset($is_qq_black_list) || (isset($is_qq_black_list) && $is_qq_black_list == 0)) ? "checked=\"checked\"" : "";?> />否<label class = "form_label form_label_right" for = "is_qq_black_list_false"><i class = "fa fa-toggle-off fa-fw"></i></label></li>
				<li title = "是否开启QQ白名单"><label class = "form_label" for = "is_qq_white_list_true"><i class = "fa fa-toggle-on fa-fw"></i></label><span class = "form_i_title">Q白名单</span><input class = "form_radio" type = "radio" id = "is_qq_white_list_true" name = "is_qq_white_list" value = "true" <?php echo (isset($is_qq_white_list) && $is_qq_white_list == 1) ? "checked=\"checked\"" : "";?> />是<input class = "form_radio" type = "radio" id = "is_qq_white_list_false" name = "is_qq_white_list" value = "false" <?php echo (!isset($is_qq_white_list) || (isset($is_qq_white_list) && $is_qq_white_list == 0)) ? "checked=\"checked\"" : "";?> />否<label class = "form_label form_label_right" for = "is_qq_white_list_false"><i class = "fa fa-toggle-off fa-fw"></i></label></li>
				<li><input class = "form_button" type = "submit" value = "批量修改" /></li>
			</ul>
			<?php } elseif ($type == 'remove') { ?>
			<center>
				<input class = "white_button" type = "submit" value = "确定批量删除" />
			</center>
			<?php } ?>
		</form>
	</div>
</div>